package com.utils.basehelper.UUID;

import java.util.Random;

/**
 * UUID生成器
 * @author zhaozongyi
 * @create 2021-11-17 11:13
 */
public class SerialVersionUIDUtil {
    public static void main(String[] args) {
        System.out.println(SerialVersionUIDUtil.createUID());
    }

    public static String createUID(){
        Random random = new Random();
        StringBuffer str = new StringBuffer();
        for (int i = 0; i < 19; i++) {
            if(i==0){
                str.append(random.nextInt(9)+1);
            } else{
                str.append(random.nextInt(10));
            }
        }
        str.append("L");
        return str.toString();
    }
}